package com.ruoyi.app.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 首页轮播图对象 app_banner
 * 
 * @author ruoyi
 * @date 2025-11-05
 */
public class AppBanner extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 轮播图图片地址 */
    @Excel(name = "轮播图图片地址")
    private String imageUrl;

    /** 轮播图标题（可选） */
    @Excel(name = "轮播图标题", readConverterExp = "可=选")
    private String title;

    /** 排序序号（越小越靠前） */
    @Excel(name = "排序序号", readConverterExp = "越=小越靠前")
    private Long sort;

    /** 状态（1显示，0隐藏） */
    @Excel(name = "状态", readConverterExp = "1=显示，0隐藏")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("imageUrl", getImageUrl())
            .append("title", getTitle())
            .append("sort", getSort())
            .append("status", getStatus())
            .toString();
    }
}
